package cn.rubbit;

import java.util.HashMap;
import java.util.Map;

public class ApplicationContext {
	public static final String DB_OBJECT = "db.object";
	public static final String DB_JARS = "db.jar";
	public static final String DB_DRIVER = "db.driver";
	public static final String DB_URL = "db.url";
	public static final String DB_USR = "db.username";
	public static final String DB_PWD = "db.password";

	public static final String PJ_OBJECT = "project.object";
	public static final String PJ_NAME = "project.name";
	public static final String PJ_TYPE = "project.type";
	public static final String PJ_GROUP = "project.groupId";
	public static final String PJ_ARTIFACT = "project.artifactId";
	public static final String PJ_TABLES = "project.tables";

	public static final String PLUG_XML = "plug.xml";
	public static final String POM_FILE = "pom.ftl";
	public static final String POM_TARGET_FILE = "pom.xml";
	public static final String BASE_ENTITY_TARGET_FILE = "BaseEntity.java";
	public static final String BASE_ENTITY_FILE = "BaseEntity.ftl";
	public static final String WEB_FILE = "web.ftl";
	public static final String WEB_TARGET_FILE = "src\\main\\webapp\\WEB-INF\\web.xml";
	public static final String ENTITY_FILE = "entity.ftl";
	private static Map<String, Object> objs = new HashMap<String, Object>();
	private static Map<String, String> params = new HashMap<String, String>();

	public static void set(String str, Object obj) {
		objs.put(str, obj);
	}

	public static Object get(String key) {
		return objs.get(key);
	}

	public static void setParms(String str, String parm) {
		params.put(str, parm);
	}

	public static String getParms(String key) {
		return params.get(key);
	}

}
